<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<link href="css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css">					<!-- zTree CSS函式庫 -->
<link href="css/redmond/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css">	<!-- jquery UI CSS函式庫 -->
<link href="css/selfTemplate.css" rel="stylesheet" type="text/css">							<!-- 自建CSS函式庫 -->

<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>								<!-- jquery 函式庫 -->
<script src="js/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>					<!-- jquery UI 函式庫 -->
<script src="js/jquery.cookie.js" type="text/javascript"></script>								<!-- 操做cookie用 -->
<script src="js/widgets.js" type="text/javascript"></script>									<!-- 自建函式庫 -->

<script type="text/javascript">


$(document).ready(function(){
	
	init("defParaDep.html");
	
	//讀入預設參數
	$.ajax({type:"post",url:"GetDefaultPara",dataType: "json",async:false,
		success : function(res) {
			if ( res.isPerformHTTPD ) {
				$("#yesHTTPD").click();	
			} else {
				$("#noHTTPD").click();
			}
		},error : function(xhr, ajaxOptions, thrownError) { errorAjx(xhr); }
	});
	
	$("#btnSave").bind("click",function(){
		
		var isHTTPDneed = $("input[name='httpd']:checked").val();
		
		$.ajax({type:"post",url:"UpdateSpecificSysParameter",dataType: "text",async:false,
			data:{pn:"isPerformHTTPD",pv:isHTTPDneed},
			success : function(res) {
			},error : function(xhr, ajaxOptions, thrownError) { errorAjx(xhr); }
		});
	});
	
	
	$("button").button();
});

</script>
</head>
<body>
	<div id="header"></div>		<!-- 畫面抬頭 -->
	
	<table id="paraTable">
	
		<thead class="tableFirst">
			<tr><td colspan="2" class="left"><button id="btnSave">儲存</button></td></tr>
			<tr><td colspan="2">&nbsp;</td></tr>
			<tr><td class="right">執行HTTPD Service切換：</td><td class="left">&nbsp;是<input id="yesHTTPD" value="true" name="httpd" type="radio"/>&nbsp;否<input id="noHTTPD" value="false" name="httpd" type="radio"/></td></tr>
		</thead>
	
	
	</table>
		
	<p>
	<p>
</body>



<!-- 單純確認的對話框 -->
<div class="dialog" id="diaConfirm"></div>
</html>